package practice;

import java.util.Scanner;

/**
 * Description:
 *
 * @Author cowen
 * @Create 2023/10/18 14:29
 * @Version 1.0
 */
class StudentScore{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入学生人数：");
        int count = scan.nextInt();
        int[] scores = new int[count];
        int MAX=0;
        System.out.println("请输入"+count+"个成绩数据：");
        for (int i = 0; i < scores.length; i++) {
            scores[i]=scan.nextInt();
            if(scan.nextInt()>MAX){
                MAX=scan.nextInt();
            }
        }
        System.out.println("成绩的最大值为："+MAX);
        for (int i = 0; i < scores.length; i++) {
            System.out.println("student "+i+" score is "+scores[i]);
        }
        scan.close();
    }
}
